# Use an official Nginx image as the base image
FROM docker.m.daocloud.io/nginx:1.19.2

# Set the working directory to /usr/share/nginx/html
WORKDIR /usr/share/nginx/html

# Remove default Nginx static files
RUN rm -rf ./*

# Copy the extracted project files into the container
COPY .  /usr/share/nginx/html

# Expose port 80 to allow external connections
EXPOSE 80

# Start Nginx server
CMD ["nginx", "-g", "daemon off;"]

